Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single Bucket - Delete object #67

Merged
merged 6 commits into from
Aug 8, 2024
Merged

Conversation

bstopp
Copy link
Contributor

@bstopp bstopp commented Jul 29, 2024

Description

Next step in getting to a single bucket: delete object

How Has This Been Tested?

Added unit & integration tests.

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Copy link

codecov bot commented Jul 29, 2024

Codecov Report

Attention: Patch coverage is 85.71429% with 2 lines in your changes missing coverage. Please review.

Please upload report for BASE (feat/single-bucket@8db5b7f). Learn more about missing BASE report.

Files Patch % Lines
src/storage/object/move.js 0.00% 2 Missing ⚠️
Additional details and impacted files
@@                  Coverage Diff                  @@
##             feat/single-bucket      #67   +/-   ##
=====================================================
  Coverage                      ?   58.46%           
=====================================================
  Files                         ?       38           
  Lines                         ?     1712           
  Branches                      ?        0           
=====================================================
  Hits                          ?     1001           
  Misses                        ?      711           
  Partials                      ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -25,7 +24,6 @@ async function invalidateCollab(api, url, env) {
}

export async function deleteSource({ req, env, daCtx }) {
await postObjectVersion(req, env, daCtx);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIUC this line here is to save a version of the file before deletion, so that it could be restored if the delete was accidental. I think it would be good to keep that.

/cc @karlpauls

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC, there was a discussion about this (OOB). The problem was it didn't consider directories correctly. IMO it would make sense to keep it unless it causes big performance concerns but it would need to be only done for files and you'd have to evaluate the impact for large trees I guess.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was discussed on Slack w/ @auniverseaway , and the decision was to remove it.

@bstopp bstopp force-pushed the feat/sb-delete-object branch from 4e08a90 to 849fbbf Compare August 8, 2024 14:25
@bstopp bstopp requested review from karlpauls and bosschaert August 8, 2024 14:25
@bstopp bstopp merged commit 6cb7dc7 into feat/single-bucket Aug 8, 2024
5 checks passed
@bstopp bstopp deleted the feat/sb-delete-object branch August 8, 2024 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants